package com.ddone.sms.feign;

import com.ddone.common.result.Response;
import com.ddone.sms.feign.fallback.UserInfoClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author ddone
 * @date 2024/4/19-10:36
 */
@FeignClient(value = "service-core/finance-loan/core/api/userInfo",fallback = UserInfoClientFallBack.class)
public interface UserInfoClient {

    @GetMapping("/checkMobile/{mobile}")
    Response<Object> checkMobile(@PathVariable(value = "mobile") String mobile);
}
